//
//  WBDemoViewController.swift
//  MyXinLangWeiBo
//
//  Created by 迟浩伦 on 2016/12/23.
//  Copyright © 2016年 迟浩伦. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
title = "第\(navigationController?.childViewControllers.count ?? 0)个"
        
    }
    
    func showNext(){
    
        let vc = WBDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }

}

extension WBDemoViewController{

    override func setupTableView() {
        super.setupTableView()
         navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
        
    }
 

}
